import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import store from './store/store'
import { Provider } from 'react-redux'
import { PersistGate } from 'redux-persist/lib/integration/react';
import { persistor } from './store/store';

const root = ReactDOM.createRoot(document.getElementById('root'));

root.render(

    <Provider store={store}>
      <PersistGate loading={null} persistor={persistor}>
        <App />
      </PersistGate>
    </Provider>

);
